import request from '../utils/index'

//多媒体上传
const upload = (params,config) => request.post('api/multimediaManagement/v1/uploadFile',params,config)

// 多媒体获取
const multimedia = (params) => request.post('/api/multimediaManagement/v1/getMultimediaList',params)

// 多媒体列表查询
const getMultimediaListByDatabase = (params) => request.post('/api/multimediaManagement/v1/getMultimediaListByDatabase',params)

//多媒体删除
const multimediaDelate = (params) => request.post('api/multimediaManagement/v1/deleteMediaByIds',params)

// 多媒体标签修改
const multimediaAlter = (params) => request.post('api/multimediaManagement/v1/modifyLabel',params)

//查询 程序信息列表
const getProgramList = (params) => request.post('/api/programManagement/v1/getProgramList',params)

//登录
const login = (params) => request.post('/api/userService/v1/webLogin',params)

//新建程序

const insertProgram = (params) => request.post('/api/programManagement/v1/insertProgram',params)

//程序上下架
const updateProgramStatus = (params) => request.post('/api/programManagement/v1/updateProgramStatus',params)

// 编辑程序 
const modifyProgram = (params) => request.post('/api/programManagement/v1/modifyProgram',params)

// ID 查询程序信息
const getProgramById = (params) => request.post('/api/programManagement/v1/getProgramById',params)

// 查询塑造
const getMouldList = (params) => request.post('/api/mouldService/v1/getMouldList',params)

// 删除塑造
const deleteMouldByIds = (params) => request.post('/api/mouldService/v1/deleteMouldByIds',params)

// 塑造 下载
const downloadMouldById = (filename,token) => request.get(`/api/mouldService/v1/downloadMould?filename=${filename}&token=${token}`)

// 新建塑造
const insertMould = (params) => request.post('/api/mouldService/v1/insertMould',params)

//塑造上传
const uploadFile = (param) => request.post('/api/mouldService/v1/uploadFile',param)

// 文件地址解析
// const parseFile = (param) => request.post('/api/mouldService/v1/parseFile',param)
const parseFile = (filePath,token) => request.get(`/api/mouldService/v1/parseFile?filePath=${filePath}&token=${token}`)
// 执行塑造
const execMould = (param) => request.post('/api/mouldService/v1/execMould',param)
// 获取塑造状态
const getStatus = (param) => request.post('/api/mouldService/v1/getStatus',param)
// 塑造报告
const getMouldById = (param) => request.post('/api/mouldService/v1/getMouldById',param)

// 塑造报告
const forensicByMouldResult = (params) => request.post('/api/mouldService/v1/forensicByMouldResult',params)

// 取证管理列表
const getForensicList = (params) => request.post('/api/forensicService/v1/getForensicList',params)

// 新建取证
const insertForensic = (params) => request.post('/api/forensicService/v1/insertForensic',params)

// 删除取证
const deleteForensicByIds = (params) => request.post('/api/forensicService/v1/deleteForensicByIds',params)

// 执行取证
const execForensic = (params) => request.post('/api/forensicService/v1/execForensic',params)
// 获取取证状态
const forensicGetStatus = (params) => request.post('/api/forensicService/v1/getStatus',params)

// 取证文件上传
const forensicUploadFile = (params) => request.post('/api/forensicService/v1/uploadFile',params)

// 取证报告
const getForensicById = (params) => request.post('/api/forensicService/v1/getForensicById',params)

//
const getProgramAll = (params) => request.post('api/programManagement/v1/getProgramAll',params)

//获取用户列表
const getUserList = (params) => request.post('/api/userService/v1/getUserList',params)

//用户角色类型
const getRolelist = (params) => request.post('api/userService/v1/getRoleList',params)

//添加用户
const addAdminUser = (params) => request.post('/api/userService/v1/addAdminUser',params)

//删除用户
const deleteUserByIds = (params) => request.post('/api/userService/v1/deleteUserByIds',params)

//ID 获取用户信息
const getUserById = (params) => request.post('/api/userService/v1/getUserById',params)

// 修改用户信息
const modifyUser = (params) => request.post('/api/userService/v1/modifyUser',params)

//修改自己密码
const modifyOwnPassword = (params) => request.post('/api/userService/v1/modifyOwnPassword',params)

//修改用户密码
const modifyUserPassword = (params) => request.post('/api/userService/v1/modifyUserPassword',params)

//查询程序评价列表
const getProgramEvaluationList = (params) => request.post('/api/programEvaluation/v1/getProgramEvaluationList',params)

//塑造程序评价
const mouldProgramEvaluation = (params) => request.post('/api/programEvaluation/v1/mouldProgramEvaluation',params)

//获取塑造结果信息列表
const getMouldResultInfos = (params) => request.post('/api/mouldService/v1/getMouldResultInfos',params)

//取证程序评价
const forensicProgramEvaluation = (params) => request.post('/api/programEvaluation/v1/forensicProgramEvaluation',params)

export {
    upload,
    multimedia,
    getMultimediaListByDatabase,
    multimediaDelate,
    multimediaAlter,
    getProgramList,
    login,
    insertProgram,
    updateProgramStatus,
    modifyProgram,
    getProgramById,
    getMouldList,
    deleteMouldByIds,
    downloadMouldById,
    insertMould,
    uploadFile,
    getForensicList,
    parseFile,
    execMould,
    getStatus,
    insertForensic,
    deleteForensicByIds,
    execForensic,
    forensicGetStatus,
    forensicUploadFile,
    getMouldById,
    getForensicById,
    getProgramAll,
    getUserList,
    getRolelist,
    addAdminUser,
    deleteUserByIds,
    getUserById,
    modifyUser,
    modifyOwnPassword,
    modifyUserPassword,
    getProgramEvaluationList,
    mouldProgramEvaluation,
    getMouldResultInfos,
    forensicProgramEvaluation,
    forensicByMouldResult
}